var hidid;

function showDiv2(divid2,obj)
{
	var obj1 = obj;
	clearTimeout(hidid);
	obj.onmouseout=function(){
		hidid=setTimeout("hideDiv2()",500);
	}

	$('.altdiv').hide();
	
	var posLeft = obj1.offsetLeft;
	var posTop = obj1.offsetTop;
	while(obj1=obj1.offsetParent)
	{
		posLeft += obj1.offsetLeft;
		posTop += obj1.offsetTop;
	}
	document.getElementById(divid2).style.display="block";
	var bro=$.browser;
	if(bro.mozilla || bro.opera){
		var clientWidth=document.documentElement.scrollWidth;
	}else{
		var clientWidth=document.body.scrollWidth;
	}

	var divWidth=document.getElementById(divid2).clientWidth;
	if((posLeft+divWidth)>clientWidth){
		posLeft=clientWidth-divWidth-2;
	}
	document.getElementById(divid2).style.left = posLeft+"px";
	document.getElementById(divid2).style.top = posTop +"px";
	document.getElementById(divid2).onmouseover=function(){
		clearTimeout(hidid);
	}
	document.getElementById(divid2).onmouseout=function(){
		hidid=setTimeout("hideDiv2()",500);
	}
}

function hideDiv2()
{

	$('.altdiv').hide()

}
